package org.atfeihu.springcloud.alibaba.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.atfeihu.springcloud.alibaba.domain.Order;

/**
 * @author wangfeihu
 * @create 2021/9/12 18:40
 */
@Mapper
public interface OrderDao {

    // 创建订单
    void create(Order order);

    // 修改订单状态 0 → 1
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
